#ifndef STOCKMODEL_H
#define STOCKMODEL_H

#include "core/basemodel.h"
#include "core/itemmodel.h"

// We cannot #include core/transactionmodel.h - it #includes this file
class TransactionModel;

class StockModel : public BaseModel
{
public:
    StockModel();
    ~StockModel();

    ItemModel *getItem();
    void setItem(ItemModel *item);

    QString getSerial();
    void setSerial(QString serial);

    bool isSold();

    float getSellPrice();
    void setSellPrice(float sellPrice);

    int getTransactionId();
    void setTransactionId(int id);
    void setTransaction(TransactionModel *transaction);

private:
    ItemModel *item;
    QString serial;
    bool sold;
    float priceSold;
    int transactionID;
};

#endif // STOCKMODEL_H
